<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BoomShake卡座预约小程序</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
            background: #1a1a1a;
            color: #ffffff;
            height: 100vh;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 375px;
            margin: 0 auto;
            height: 100vh;
            background: 
                radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(74, 222, 128, 0.05) 0%, transparent 50%),
                linear-gradient(135deg, #2d4a3e 0%, #3d2c5d 100%);
            position: relative;
            overflow: hidden;
        }

        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(100, 255, 218, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
            pointer-events: none;
            z-index: 1;
        }

        /* 登录页面 */
        .login-page {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
            padding: 60px 40px;
            text-align: center;
        }

        .logo {
            font-size: 32px;
            font-weight: bold;
            color: #64ffda;
            margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
        }

        .subtitle {
            font-size: 16px;
            color: #b19cd9;
            margin-bottom: 80px;
            opacity: 0.8;
        }

        .wechat-login-btn {
            background: linear-gradient(45deg, #4ade80, #8b5cf6);
            border: none;
            padding: 16px 60px;
            border-radius: 25px;
            color: white;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
            transition: all 0.3s ease;
        }

        .wechat-login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(74, 222, 128, 0.4);
        }

        /* 主页面布局 */
        .main-page {
            display: none;
            height: 100vh;
            flex-direction: column;
        }

        .header {
            background: rgba(45, 74, 62, 0.9);
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 3;
        }

        .app-title {
            font-size: 18px;
            font-weight: 600;
            color: #64ffda;
        }

        .store-switch {
            background: rgba(139, 92, 246, 0.8);
            border: none;
            padding: 8px 16px;
            border-radius: 15px;
            color: white;
            font-size: 14px;
            cursor: pointer;
        }

        .content {
            flex: 1;
            overflow: hidden;
            position: relative;
            z-index: 2;
        }

        /* 日期选择器 */
        .date-selector {
            display: flex;
            padding: 15px 20px;
            background: rgba(45, 74, 62, 0.5);
            overflow-x: auto;
            gap: 10px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .date-selector::-webkit-scrollbar {
            display: none;
        }

        .date-item {
            min-width: 60px;
            padding: 8px 16px;
            background: rgba(139, 92, 246, 0.3);
            border: 1px solid rgba(139, 92, 246, 0.5);
            border-radius: 20px;
            color: #b19cd9;
            font-size: 14px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .date-item.active {
            background: linear-gradient(45deg, #4ade80, #8b5cf6);
            color: white;
            border-color: transparent;
        }

        /* 卡片样式 */
        .card-list {
            padding: 15px 20px;
            height: calc(100vh - 140px);
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .card-list::-webkit-scrollbar {
            display: none;
        }

        .event-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 18px;
            margin-bottom: 12px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .event-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 80% 20%, rgba(100, 255, 218, 0.05) 0%, transparent 70%),
                radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
            pointer-events: none;
            z-index: -1;
        }

        .event-card:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .event-title {
            font-size: 18px;
            font-weight: 600;
            color: #64ffda;
            margin-bottom: 10px;
        }

        .event-info {
            color: #b19cd9;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .event-btn {
            background: linear-gradient(45deg, #4ade80, #8b5cf6);
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            color: white;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        /* 拼卡页面特殊样式 */
        .pincard-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 12px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .pincard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .initiator-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(45deg, #4ade80, #8b5cf6);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
        }

        .status-badge {
            padding: 4px 8px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-ongoing {
            background: rgba(74, 222, 128, 0.3);
            color: #4ade80;
        }

        .status-ended {
            background: rgba(156, 163, 175, 0.3);
            color: #9ca3af;
        }

        .participants {
            display: flex;
            gap: 5px;
            margin-top: 10px;
        }

        .participant-avatar {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: linear-gradient(45deg, #8b5cf6, #4ade80);
        }

        /* 我的页面 */
        .profile-menu {
            padding: 20px;
            height: calc(100vh - 140px);
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .profile-menu::-webkit-scrollbar {
            display: none;
        }

        .menu-item {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .menu-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
            pointer-events: none;
            z-index: -1;
        }

        .menu-item:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .menu-title {
            font-size: 16px;
            color: #ffffff;
        }

        .menu-arrow {
            color: #b19cd9;
            font-size: 14px;
        }

        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 375px;
            background: rgba(45, 74, 62, 0.95);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            z-index: 10;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            padding: 5px;
            transition: all 0.3s ease;
        }

        .nav-item.active {
            color: #64ffda;
        }

        .nav-icon {
            font-size: 20px;
            margin-bottom: 2px;
        }

        .nav-text {
            font-size: 12px;
        }

        /* 弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 375px;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
        }

        .modal-content {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: linear-gradient(135deg, #2d4a3e 0%, #3d2c5d 100%);
            border-radius: 20px 20px 0 0;
            padding: 30px 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .modal.show .modal-content {
            transform: translateY(0);
        }

        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #64ffda;
            margin-bottom: 20px;
            text-align: center;
        }

        .seat-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }

        .seat-item {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .seat-item:hover,
        .seat-item.selected {
            background: rgba(139, 92, 246, 0.3);
            border-color: #8b5cf6;
        }

        .seat-number {
            font-size: 16px;
            font-weight: 600;
            color: #64ffda;
            margin-bottom: 5px;
        }

        .seat-price {
            font-size: 14px;
            color: #b19cd9;
        }

        .modal-actions {
            display: flex;
            gap: 15px;
        }

        .btn-cancel,
        .btn-confirm {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-cancel {
            background: rgba(156, 163, 175, 0.3);
            color: #9ca3af;
        }

        .btn-confirm {
            background: linear-gradient(45deg, #4ade80, #8b5cf6);
            color: white;
        }

        /* 页面切换 */
        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /* 响应式调整 */
        @media (max-width: 375px) {
            .container {
                max-width: 100%;
            }
            
            .bottom-nav {
                max-width: 100%;
            }
            
            .modal {
                max-width: 100%;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 登录页面 -->
        <div id="loginPage" class="login-page">
            <div class="logo">BoomShake</div>
            <div class="subtitle">卡座预约小程序</div>
            <button class="wechat-login-btn" onclick="login()">微信快捷登录</button>
        </div>

        <!-- 主页面 -->
        <div id="mainPage" class="main-page">
            <div class="header">
                <div class="app-title">BoomShake</div>
                <button class="store-switch" onclick="switchStore()">切换门店</button>
            </div>

            <div class="content">
                <!-- 活动页面 -->
                <div id="activityPage" class="page active">
                    <div class="date-selector">
                        <div class="date-item active" onclick="selectDate(this, 'all')">全部</div>
                        <div class="date-item" onclick="selectDate(this, 'today')">今天</div>
                        <div class="date-item" onclick="selectDate(this, 'mon')">周一</div>
                        <div class="date-item" onclick="selectDate(this, 'tue')">周二</div>
                        <div class="date-item" onclick="selectDate(this, 'wed')">周三</div>
                        <div class="date-item" onclick="selectDate(this, 'thu')">周四</div>
                    </div>
                    <div class="card-list" style="height: calc(100vh - 190px);">
                        <div class="event-card">
                            <div class="event-title">周末狂欢夜</div>
                            <div class="event-info">时间: 20:00-02:00 | 地点: BoomShake酒吧</div>
                            <div class="event-info">DJ: Mike Chen | 音乐类型: Electronic</div>
                            <button class="event-btn">查看详情</button>
                        </div>
                        <div class="event-card">
                            <div class="event-title">复古摇滚之夜</div>
                            <div class="event-info">时间: 21:00-01:00 | 地点: BoomShake酒吧</div>
                            <div class="event-info">现场乐队: Rock Legends | 音乐类型: Rock</div>
                            <button class="event-btn">查看详情</button>
                        </div>
                        <div class="event-card">
                            <div class="event-title">拉丁热舞派对</div>
                            <div class="event-info">时间: 19:30-23:30 | 地点: BoomShake酒吧</div>
                            <div class="event-info">舞蹈老师: Maria | 音乐类型: Latin</div>
                            <button class="event-btn">查看详情</button>
                        </div>
                    </div>
                </div>

                <!-- 定卡页面 -->
                <div id="bookingPage" class="page">
                    <div class="card-list">
                        <div class="event-card">
                            <div class="event-title">BoomShake酒吧卡座预订</div>
                            <div class="event-info">营业时间: 18:00-03:00</div>
                            <div class="event-info">地址: 市中心繁华商业区</div>
                            <div class="event-info">包含: 卡座使用权 + 免费小食 + 专属服务</div>
                            <button class="event-btn" onclick="showBookingModal()">立即定卡</button>
                        </div>
                    </div>
                </div>

                <!-- 拼卡页面 -->
                <div id="pincardPage" class="page">
                    <div class="date-selector">
                        <div class="date-item active" onclick="selectDate(this, 'all')">全部</div>
                        <div class="date-item" onclick="selectDate(this, 'today')">今天</div>
                        <div class="date-item" onclick="selectDate(this, 'mon')">周一</div>
                        <div class="date-item" onclick="selectDate(this, 'tue')">周二</div>
                        <div class="date-item" onclick="selectDate(this, 'wed')">周三</div>
                        <div class="date-item" onclick="selectDate(this, 'thu')">周四</div>
                    </div>
                    <div class="card-list" style="height: calc(100vh - 190px);">
                        <div class="pincard-card">
                            <div class="pincard-header">
                                <div class="initiator-info">
                                    <div class="avatar">张</div>
                                    <span>张小明发起</span>
                                </div>
                                <div class="status-badge status-ongoing">进行中</div>
                            </div>
                            <div class="event-info">时间: 今晚20:00 | 卡座: VIP-001</div>
                            <div class="event-info">费用: ¥200/人 (共4人)</div>
                            <div class="participants">
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                                <div style="display: flex; align-items: center; color: #b19cd9; font-size: 14px; margin-left: 10px;">还差2人</div>
                            </div>
                        </div>
                        <div class="pincard-card">
                            <div class="pincard-header">
                                <div class="initiator-info">
                                    <div class="avatar">李</div>
                                    <span>李小红发起</span>
                                </div>
                                <div class="status-badge status-ended">已结束</div>
                            </div>
                            <div class="event-info">时间: 昨晚21:00 | 卡座: VIP-003</div>
                            <div class="event-info">费用: ¥150/人 (共6人)</div>
                            <div class="participants">
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                            </div>
                        </div>
                        <div class="pincard-card">
                            <div class="pincard-header">
                                <div class="initiator-info">
                                    <div class="avatar">王</div>
                                    <span>王大帅发起</span>
                                </div>
                                <div class="status-badge status-ongoing">进行中</div>
                            </div>
                            <div class="event-info">时间: 明晚19:30 | 卡座: 普通-008</div>
                            <div class="event-info">费用: ¥100/人 (共8人)</div>
                            <div class="participants">
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                                <div class="participant-avatar"></div>
                                <div style="display: flex; align-items: center; color: #b19cd9; font-size: 14px; margin-left: 10px;">还差5人</div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 我的页面 -->
                <div id="profilePage" class="page">
                    <div class="profile-menu">
                        <div class="menu-item" onclick="goToTickets()">
                            <div class="menu-title">我的票券</div>
                            <div class="menu-arrow">></div>
                        </div>
                        <div class="menu-item" onclick="goToMyInfo()">
                            <div class="menu-title">我的信息</div>
                            <div class="menu-arrow">></div>
                        </div>
                        <div class="menu-item" onclick="contactService()">
                            <div class="menu-title">联系客服</div>
                            <div class="menu-arrow">></div>
                        </div>
                        <div class="menu-item" onclick="goToRealName()">
                            <div class="menu-title">我的实名信息</div>
                            <div class="menu-arrow">></div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 底部导航 -->
            <div class="bottom-nav">
                <div class="nav-item active" onclick="switchTab('activity')">
                    <div class="nav-icon">🎉</div>
                    <div class="nav-text">活动</div>
                </div>
                <div class="nav-item" onclick="switchTab('booking')">
                    <div class="nav-icon">📅</div>
                    <div class="nav-text">定卡</div>
                </div>
                <div class="nav-item" onclick="switchTab('pincard')">
                    <div class="nav-icon">👥</div>
                    <div class="nav-text">拼卡</div>
                </div>
                <div class="nav-item" onclick="switchTab('profile')">
                    <div class="nav-icon">👤</div>
                    <div class="nav-text">我的</div>
                </div>
            </div>
        </div>

        <!-- 定卡弹窗 -->
        <div id="bookingModal" class="modal">
            <div class="modal-content">
                <div class="modal-title">选择卡座</div>
                <div class="seat-grid">
                    <div class="seat-item" onclick="selectSeat(this)">
                        <div class="seat-number">VIP-001</div>
                        <div class="seat-price">¥800/晚</div>
                    </div>
                    <div class="seat-item" onclick="selectSeat(this)">
                        <div class="seat-number">VIP-002</div>
                        <div class="seat-price">¥800/晚</div>
                    </div>
                    <div class="seat-item" onclick="selectSeat(this)">
                        <div class="seat-number">VIP-003</div>
                        <div class="seat-price">¥800/晚</div>
                    </div>
                    <div class="seat-item" onclick="selectSeat(this)">
                        <div class="seat-number">普通-001</div>
                        <div class="seat-price">¥400/晚</div>
                    </div>
                    <div class="seat-item" onclick="selectSeat(this)">
                        <div class="seat-number">普通-002</div>
                        <div class="seat-price">¥400/晚</div>
                    </div>
                    <div class="seat-item" onclick="selectSeat(this)">
                        <div class="seat-number">普通-003</div>
                        <div class="seat-price">¥400/晚</div>
                    </div>
                </div>
                <div class="modal-actions">
                    <button class="btn-cancel" onclick="hideBookingModal()">取消</button>
                    <button class="btn-confirm" onclick="confirmBooking()">确认预订</button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 登录功能
        function login() {
            document.getElementById('loginPage').style.display = 'none';
            document.getElementById('mainPage').style.display = 'flex';
        }

        // 切换门店
        function switchStore() {
            alert('切换门店功能');
        }

        // 切换标签页
        function switchTab(tab) {
            // 隐藏所有页面
            const pages = document.querySelectorAll('.page');
            pages.forEach(page => page.classList.remove('active'));
            
            // 显示选中页面
            document.getElementById(tab + 'Page').classList.add('active');
            
            // 更新导航状态
            const navItems = document.querySelectorAll('.nav-item');
            navItems.forEach(item => item.classList.remove('active'));
            event.currentTarget.classList.add('active');
        }

        // 选择日期
        function selectDate(element, date) {
            const dateItems = element.parentNode.querySelectorAll('.date-item');
            dateItems.forEach(item => item.classList.remove('active'));
            element.classList.add('active');
        }

        // 显示定卡弹窗
        function showBookingModal() {
            const modal = document.getElementById('bookingModal');
            modal.style.display = 'block';
            setTimeout(() => modal.classList.add('show'), 10);
        }

        // 隐藏定卡弹窗
        function hideBookingModal() {
            const modal = document.getElementById('bookingModal');
            modal.classList.remove('show');
            setTimeout(() => modal.style.display = 'none', 300);
        }

        // 选择卡座
        function selectSeat(element) {
            const seats = document.querySelectorAll('.seat-item');
            seats.forEach(seat => seat.classList.remove('selected'));
            element.classList.add('selected');
        }

        // 确认预订
        function confirmBooking() {
            const selectedSeat = document.querySelector('.seat-item.selected');
            if (selectedSeat) {
                alert('预订成功！卡座: ' + selectedSeat.querySelector('.seat-number').textContent);
                hideBookingModal();
            } else {
                alert('请先选择卡座');
            }
        }

        // 我的页面功能
        function goToTickets() {
            alert('我的票券页面');
        }

        function goToMyInfo() {
            alert('我的信息页面');
        }

        function contactService() {
            alert('联系客服');
        }

        function goToRealName() {
            alert('实名信息页面');
        }

        // 点击弹窗背景关闭
        document.getElementById('bookingModal').addEventListener('click', function(e) {
            if (e.target === this) {
                hideBookingModal();
            }
        });
    </script>
</body>
</html>
